package com.kurumi.medical.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.kurumi.medical.service.BasicDataService;

@Controller
@RequestMapping("/basic")
public class BasicDataController {
	
	@Autowired
	private BasicDataService basicDataService;
	
	@ResponseBody
	@RequestMapping("/disease")
	public String disease() {
		List<Map<String,Object>> maps = basicDataService.selectDiseaseDictByOracle();
		basicDataService.addDiseaseDictToMysql(maps);
		return "success";
	}

}
